week = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
while True:
    myStr = input("请输入任意一个字母:")
    upMyStr = myStr.upper()
    for weekS in week:
        if upMyStr == weekS[0]:
            if weekS.startswith("M"):
                print("星期一")
            elif weekS.startswith("W"):
                print("星期三")
            elif weekS.startswith("F"):
                print("星期五")
            elif weekS.startswith("T") or weekS.startswith("S"):
                secondStr = input("请再输入任意一个字母:")
                newStr = upMyStr+secondStr
                print(newStr)
                for weekStr in week:
                    if weekStr.find(newStr,0,2) != -1:
                        if newStr == "Tu":
                            print("星期二")
                        elif newStr == "Th":
                            print("星期四")
                        elif newStr == "Sa":
                            print("星期六")
                        elif newStr == "Su":
                            print("星期日")
                        break
            break